<template>
  <div class="hello">
    <h1>这是内容</h1>
    <table border="1">
      <thead>
        <tr>
          <th>ID</th>
          <th>姓名</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(item,index) in arr" :key="index">
          <td>{{item.id}}</td>
          <td>{{ item.name }}</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
export default {
  data(){
    return{
      arr:[{
        id:1,
        name:'张三'
      },{
        id:2,
        name:'李四'
      },{
        id:3,
        name:'王五'
      },]
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
</style>
